// 发现音乐路由
import request from '@/api/request'

/* 获取轮播图 */
export const getBanner = () => request({ url: '/banner', method: 'get' });

// 获取推荐歌单
export const getPersonalized = () => request({ url: '/personalized?limit=10', method: 'get' })

// 获取推荐电台
export const getNewsong = () => request({ url: '/personalized/newsong', method: 'get', })

// 获取推荐mv
export const getRecommendMv = () => request({ url: '/personalized/mv', method: 'get' })

/* 获取排行榜信息 */
// export const getToplist = () => request({ url: '/toplist', method: 'get' })
export const getToplist = () => request('/toplist')

// 排行榜详情
export const gettoplistDetail = (id) => request('/playlist/detail?id=24381617', { id, method: 'get' })